package com.iot.ammeter.entity.android.balance;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_balance")
@ApiModel(value = "AppBalance对象", description = "app端用户余额表")
public class Balance {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "app端用户余额id")
    @TableId
    private String balanceId;

    @ApiModelProperty(value = "app端用户余额id")
    @TableId
    private BigDecimal balanceNumber;

    @ApiModelProperty(value = "app端用户充值类型")
    private String payment;

    @ApiModelProperty(value = "app端用户余额id")
    @TableId
    private LocalDateTime balanceTime;

    @ApiModelProperty(value = "'app端用户id")
    private String appUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "充值明细")
    private String rechargeDetailId;

}
